﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WxStockWinSvc.Models.Entities
{
    public class StockInfo4Load : StockBaseInfo
    {
        public string MaxDate_Field { get; set; }

        public DateTime MaxDate
        {
            get
            {
                return string.IsNullOrWhiteSpace(MaxDate_Field)
                    ? new DateTime(1980, 1, 1)
                    : Convert.ToDateTime(MaxDate_Field);
            }
        }

        public StockInfo4Load()
        {
            MaxDate_Field = string.Empty;
        }
    }
}
